package com.tianji.learning.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.tianji.api.dto.leanring.LearningLessonDTO;
import com.tianji.api.dto.leanring.LearningRecordFormDTO;
import com.tianji.learning.domain.dto.LearningPlanDTO;
import com.tianji.learning.domain.entity.LearningLesson;
import com.tianji.learning.domain.entity.LearningRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 学习记录表 服务类
 * </p>
 *
 * @author author
 */
public interface ILearningRecordService extends IService<LearningRecord> {

    void updateLearningRecord(LearningRecordFormDTO dto);

    LearningLessonDTO queryLearningRecordByCourse(Long courseId);


    LambdaQueryWrapper<LearningRecord> getQueryWrapper(Long userId, Long lessonId, Long sectionId);

    String loadingKey(Long userId, Long lessonId, Long sectionId);

    //判断是否全部学完 更新

    //判断是否全部学完 更新
    void checkFinishAndUpdataLesson(Long sectionId, LearningLesson learningLessonDB, Long courseId);
}
